﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net;
using System.Text;
using System.Threading.Tasks;

namespace Models
{
    public class HttpUtilAsyncState
    {
        public HttpWebRequest Request { get; set; }

        public Stream ResponseStream { get; set; }

        /// <summary>
        /// 0:开始 1:请求中 2:完成
        /// </summary>
        public int State { get; set; }

        public MemoryStream Stream = new MemoryStream();

        public Exception Exception { get; set; }
    }
}
